package com.game.gateway;

import com.game.gateway.server.GatewayServerBoot;
import com.game.netty.game.messagedispatcher.DispatchGameMessageService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @Author 林道敬
 * @Date 2023-07-30
 * @Description
 **/
@SpringBootApplication(scanBasePackages = { "com" })
public class GameGateway {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(GameGateway.class, args);
        DispatchGameMessageService.scanGameMessages(context,1,"com");
        GatewayServerBoot serverBoot = context.getBean(GatewayServerBoot.class);
        serverBoot.startServer();
    }

}
